#ifndef MENUSCENE_H
#define MENUSCENE_H

#include "gamescene.h"
#include <QWidget>
#include <QApplication>
#include <QList>
#include <QKeyEvent>

#include "gamebackground.h"
#include "menuitem.h"

#define RESOURCE_DIR QApplication::applicationDirPath() + "/../../resources"

class MenuScene : public GameScene
{
    Q_OBJECT

public:
    MenuScene(QWidget *parent);
    void nextScene();

public slots:
    void itemClicked(MenuItem * item);

protected:
    void keyPressEvent(QKeyEvent * key);
    void start();
    void endScene(GameScene::GameScenes nextScene);

private:
    GameBackground * background;
    MenuItem * playItem;
    MenuItem * helpItem;
    MenuItem * quitItem;
    QList<MenuItem*> menu;
    int menuPosition;
};

#endif // MENUSCENE_H
